worked on problem 2 and 4 of homework