implementing irbuilder for class