completes second homework assignment.