first algorithmic pseudocode conversion