format of some class and creation of another model