added the pseudocode to the repot