Completes fourth homework assignment.