Assignment 6 code from class 3/6/2014