Final Initial Code for part 4