Implements Serializable added to contract classes