began working on problem 3