Progress on Problem 3

--added to problem 3, untested code still.