added a public-facing analytics class