per day statistics

used some functional programming tooo