Finished the first part of the assignment.