first part of solution for 2.1 question from Laakman