class constants writing to model