added solution for 1.2 question from Laarmann