hw6 theirs through probelm 3