Implemented Serializable on model and event classes.