Pseudocode for part 1
Added more information