Added solution for Exercise 2.5