modified variable names and answer (refactor)