Completes Second Homework Assignment.