worked up through point 6 on hw4