hw6

mostly done problem 5 and 6 might need to be combined