add method to create a new field type with get and set function
add method to create a new field type with get and set function