Solutions exercise 2