Solved the task