Finished Homework part 3