added homework 2, verified results