If we put it in the companion, we have to do it for each class. The getClass won't automatically work. Tend to think it is okay here.