Completed homework 8