call define method on class