evaluating the block that is passed to the define method
renamed factory class to factory_group