added solution for 2.5 question from Laakmann