Added class for maintaining user statistics

Added class for maintaining user statistics,
update service to handle it.