create field class with basic methods