Completed second homework assignment.