making the models object serializable and extend the base object