Completed homework 7