pseudocoded
initial solution
initial solution with correct spelling
refactored, reflected a bit
reflected a bit more