Making User class final in example