part 3 coding done (BUT NOT DEBUGGING)