Added solution to exercise 11.