#12 added class define helper