implemented serializable on all model classes