finalizing the model calass