add method for model finalization (finalize)
add method to get a state of the model by id (getStateById)