finalized the model writing with formatting.