Task #10 solution