use method builder for class methods method definition