Fixed the Homework #6