implemented http service to get sales statistics
refactoring