finish Homework 6