task 2.1 pseudocode improvments