Adding solution for Exercise 12.