Add a :name instance method to the Class model