Class homework for CS121