ProgrammingAssignment 2 solution local variable is renamed