First part of CS372 Assignment 3 finished.