camelcase nit
replaced pseudocode with code that compiles