Bean made serializable