solution for puzzle #1
Initial solution for puzzle #2
reworked solution for puzzle 2