namespace VideoStreamingService features Service abstract mandatory Login { abstract } Username required [1..1] Password required [1..1] UserSettings AccountType alternative Regular { Price 0 } Premium { Price 5, MonthlyDiscount 10% } cardinality [1..1] FamilyPlan { Price 2, MonthlyDiscount 30%, ChildrenIncluded 3 } NotificationPreferences optional PushNotifications { toggle true | false } EmailNotifications { toggle true | false } StreamingQuality alternative Standard Integer Bitrate { constraint Bitrate >= 10 & <= 20 Mbps } High Integer Bitrate { constraint Bitrate >= 30 & <= 60 Mbps } Library mandatory SearchBar required [1..1] VideoPlayer mandatory PlayPause required [1..1] NextEpisode required [1..1] Subscriptions mandatory SubscriptionManagement required [1..1] optional AdditionalPaymentMethods { abstract } or CreditCard { Price 0.5, SecurityRequirements { length must be between 13 and 16 digits } } PayPal { Price 0.7, EmailRequired true } CustomerSupport ContactNumber required [1..1] Recommendations constraints Username >= 5 & Username <= 20 Characters Password >= 8 & Password <= 20 Characters MonthlyDiscount > 0 & MonthlyDiscount < 50% Premium.AccountType > Regular FamilyPlan.ChildrenIncluded > 0 SubscriptionManagement.AdditionalPaymentMethods required when Library.Subscriptions selected AdditionalPaymentMethods.CreditCard.SecurityRequirements always met AdditionalPaymentMethods.PayPal.EmailRequired true