psuedocode translated to code