pseudo code to code