Solution for Exercise 1.5