added homework 5, verified results