ERIM Programming Exercise 7