created models for analytics