Homework 3 rev 1