namespace VideoStreamingService

features
	VideoService {abstract}
		mandatory
			UserProfile {abstract}
				mandatory
					String UserName
					Integer Age { constraint Age >= 0 }
				alternative
					FreeAccount
					PaidAccount
						mandatory
							Date SubscriptionStartDate
							Date SubscriptionEndDate
			BrowsingHistory {abstract}
				or
					ViewedMovies {Integer NumberOfMovies { constraint NumberOfMovies >= 0 }}
					ViewedSeries {Integer NumberOfEpisodes { constraint NumberOfEpisodes >= 0 }}
		optional
			Notifications {abstract}
				alternative
					EmailNotification
					PushNotification
			String PreferredLanguage
constraints
	UserName != ''