made Beans serializable to get rid of warning