added solution for 1.7. question from Laakmann