homework 7 - completed