Figured out most of problem 3
Problem 2 and 3 completed