made Model->defineFields() a public method