created services folder and set load services folder path in application.rb,created statistics_task.rb in services folder