Completes second homework assignment.