hw10

functional now, code fixed with help from rumpus room (ben rothman)