Completed first half of the assignment.