Homework #2 submission by Neil Spencer