adds solution to exercise 9 - there seems to be still sth. wrong