task7 done without loggers