lab work №3 (aggregation, composition, pattern Singleton)