encapsulated custom fields in a collection class to add the mandatory type attribute that is needed for persitence