CPP CodeEval refactored
refactor