solution to problem 2 added
solution template added