finished exs 1-5 of hw6