problems 1-4, work on 5 and look at solution for 8