Solved problem number 1.
started the solution to number 2.