Made Event class Serializable