hw6 done.  Taken from brtaylor