Working on pseudocode today
made some changes since 12:27