Finished most of part A for project 5