Modify PrimitiveBuilder to inherit from PrimitiveAbstract