add solutions for problems 1 and 2
Merge pull request #1 from Caldwerl/questions-1-2

add solutions for problems 1 and 2