Finish hw6

Pull Request Homework 6