namespace VideoStreamingService features StreamingApp {Version 1.0, CostPerMonth 9.99} mandatory Authentication or SocialLogin {SocialProvider "Facebook"} EmailAndPassword {SecurityLevel 3} optional TwoFactorAuth {Methods 2} mandatory Method1 {"SMS" | "Email"} Method2 {"App Notification" | "Phone Call"} UserProfiles alternative BasicProfile PremiumProfile mandatory HDQuality {Supported true} MultipleDevices {MaxCount 5} VideoCategories or Movies {GenresCount 20, AvgRating 4.5} Shows {EpisodesPerSeason 10} Documentaries SubscriptionPlans [1..3] BasicPlan {Price 7.99, AdFree false} optional AddOn1 {ExtraHD true, Price 2.00} StandardPlan {Price 12.99, AdFree true, HDAvailable true} PremiumPlan {Price 18.99, AdFree true, MultipleScreensAllowed true, MaxDownloads 10} StreamingQuality optional LowDefinition {Resolution "480p"} HighDefinition {Resolution "1080p", PriceSurcharge 1.00} UHD {Resolution "4K", PriceSurcharge 5.00} UserStatistics abstract mandatory PlaybackData {AvgDuration 2, MostWatchedGenre "Sci-Fi"} optional InteractionMetrics {EngagementLevel 3} constraints StreamingApp.Version <= 3.0 PremiumProfile => HDQuality.Supported == true StandardPlan.Price + Optional.AddOn1.Price < 20.00 MultipleDevices.MaxCount >= 2 && PremiumPlan.MaxDownloads > 5 Movies.GenresCount >= 10 Shows.EpisodesPerSeason * EmailAndPassword.SecurityLevel <= 30 SubscriptionPlans.[1..3].Price < 25 TwoFactorAuth.Methods > 0 HighDefinition.Resolution == "1080p" <=> UHD.PriceSurcharge == 5.00 Authentication.MaxUsers >= 50 && UserProfiles.BasicProfile.SecurityLevel <= 3 PremiumPlan.MultiScreensAllowed => StreamingQuality.UHD.Supported PremiumPlan.MaxDownloads > 5 && PremiumProfile.HDQuality.Supported HighDefinition.PriceSurcharge + StreamingApp.CostPerMonth < 25.00 MultipleDevices.MaxCount * Shows.EpisodesPerSeason <= 50 UserProfiles.BasicProfile.SecurityLevel + PlaybackData.AvgDuration <= 8