completed homework #3.