Solution to Task 10