finished assignment.  maybe clean up code later