Why extending Serializable here?