created AnalyticsSource class, added test