add solution for Puzzle 2 and 3