Solved homework #5