Add basic block class.