implemented part of basic blocks and extended basic blocks