For part 1 update pseudocode, initial, and refactor