Definition should implement Serializable