namespace VideoStreamingService

features
	VideoStreamingPlatform {abstract}
		mandatory
			SupportedDevices {abstract}
				or
					MobileApp {Price 5, MonthlyCost 3}
						mandatory
							iOSApp
							AndroidApp
					WebApp {Price 0, MonthlyCost 2.5}
			SubscriptionPlans {abstract}
				or
					BasicPlan {Price 7, MonthlyCost 6}
					premiumPlan {Price 15, MonthlyCost 10}
						mandatory
							AdFree
						optional
							HDQuality
							UltraHDQuality
					FamilyPlan {Price 23, MonthlyCost 18}
						mandatory
							MultiUserAccess {MaxUsers 4}
						alternative
							StandardHDQuality
							HighDefinitionQuality
							UltraHighDefinitionQuality
					BusinessPlan {Price 50, MonthlyCost 25}
						mandatory
							MultiUserAccess {MaxUsers 10}
							ScreenShare {MaxScreens 4}
						optional
							EnhancedSecurity
				cardinality
					PromoCode {Discount percentage} [0..3]
			ContentCategories {abstract}
				or
					Films {Genre "Action"}
						mandatory
							LatestReleases
							ClasssicCollection
					TvShows {Genre "Comedy"}
						mandatory
							PopularSeries
							UpcomingSeasons
					Sports {Genre "Sport"}
						mandatory
							LiveStreams
							HighlightsReel
					Music {Genre "Music"}
						mandatory
							ConcertLivestreams
							RadioStations
			AddOnServices {abstract}
				or
					CloudBackupService {Price 5, MonthlyCost 2}
					DownloadableContent {Price 3, MonthlyCost 1.5}
					VirtualRealitySupport {Price 10, MonthlyCost 4}
					SocialIntegration {Price 2, MonthlyCost 1}
						mandatory
							FacebookIntegration
							TwitterIntegration
						optional
							InstagramIntegration
			PaymentMethods {abstract}
				or
					CreditCardPayment {Fee 3.5, Type "Credit Card"}
					DebitCardPayment {Fee 2.0, Type "Debit Card"}
					BankTransfer {Fee 1.0, Type "Bank Transfer"}
					PaypalIntegration {Fee 0.75, Type "PayPal"}
				cardinality
					AlternativeCurrencySupport {ExchangeRate real} [0..1]
			SecurityFeatures {abstract}
				mandatory
					TwoFactorAuthentication {Price 1, MonthlyCost 0.25}
				optional
					VPNAccess {Price 4, MonthlyCost 1.5}
					ParentalControls {Price 3, MonthlyCost 1}
			UserInterfaceLanguages {abstract}
				mandatory
					EnglishLanguage {Price 0, Language "English"}
				alternative
					SpanishLanguage {Price 2, Language "Spanish"}
					FrenchLanguage {Price 2, Language "French"}
					GermanLanguage {Price 2, Language "German"}
					ItalianLanguage {Price 2, Language "Italian"}
			CustomerSupportOptions {abstract}
				or
					OnlineChatSupport {ResponseTime real} {Price 3, SupportType "Chat"}
					EmailSupport {ResponseTime real} {Price 2, SupportType "Email"}
					PhoneSupport {ResponseTime real} {Price 5, SupportType "Phone"}
			SpecialOffersAndPromotions {abstract}
				or
					LimitedTimeOffer {Discount percentage} {Price 0, OfferName string}
						mandatory
							ExclusiveContentAccess
						optional
							EarlyBirdBonus
					BirthdaySpecial {Discount percentage} {Price 0, OfferName string}

constraints
	BasicPlan.Price + WebApp.Price < 20
	FamilyPlan.Price * FamilyPlan.Users > 150
	PremiumPlan.Users < BusinessPlan.Users
	DownloadableContent.Price - CloudBackupService.Price == 2
	LiveStreams.MaxScreens > UltraHDQuality.MaxUsers
	SpanishLanguage.ResponseTime / FrenchLanguage.ResponseTime <= 2.0
	BusinessPlan.Discount percentage != FamilyPlan.Discount percentage
	ClassicCollection.RadioStations < LatestReleases.Streams
	ConcertLivestreams.Fee + BankTransfer.ExchangeRate >= 5
	iOSApp.Price - AndroidApp.Fee == 3
	VPNAccess.ResponseTime * ParentalControls.MaxUsers <= 10
	FamilyPlan.Discount percentage + BusinessPlan.Discount percentage > 10
	TwoFactorAuthentication.Users > UltraHDQuality.Streams
	AlternativeCurrencySupport.ExchangeRate / ScreenShare.MaxScreens >= 5.0
	StandardHDQuality.Streams - HighDefinitionQuality.Streams < 20
	EmailSupport.ResponseTime + PhoneSupport.Fee <= 7
	LimitedTimeOffer.Discount percentage * ExclusiveContentAccess.ContentCount <= 30
	BirthdaySpecial.ResponseTime / EarlyBirdBonus.BonusValue >= 1.5