Completes third homework assignment.