finished part 3 code!!!!!!