Homework 6 rev 1