Completed homework#6