adding pseudocode