Completed problems 1 and 2. Started work on problem 3.