implemented clean architecture for statistic exercise