Solved exercise 32