class HabitStatisticServiceImpl implements HabitStatisticService {

    @Override
    public CalendarUsefulHabitsDto getInfoAboutUserHabits(Long userId) {
        List<Habit> allHabitsByUserId = findAllHabitsByStatus(userId, true);

        List<HabitLogItemDto> statisticByHabitsPerMonth = getAmountOfUnTakenItemsPerMonth(allHabitsByUserId);

        List<HabitLogItemDto> statisticUnTakenItemsWithPrevMonth =
            getDifferenceItemsWithPrevDay(allHabitsByUserId);

        CalendarUsefulHabitsDto dto = new CalendarUsefulHabitsDto();
        dto.setCreationDate(allHabitsByUserId.get(0).getCreateDate());
        dto.setAllItemsPerMonth(statisticByHabitsPerMonth);
        dto.setDifferenceUnTakenItemsWithPreviousDay(statisticUnTakenItemsWithPrevMonth);

        return dto;
    }

    @Autowired public  HabitStatisticServiceImpl(HabitStatisticRepo habitStatisticRepo,
                                     HabitRepo habitRepo,
                                     HabitService habitService, ModelMapper modelMapper,
                                     DateService dateService);

}