Update refactored method getPoints() in User class