solution for task7