added solution for 2.4 question from Laakmann