build by_month method in statistics/of_task.rb file