added solution to exercise 11