working on problem 1