Started work on problem 3