Homework #5 in complete