Block Ciphers: CBC

Example of using CBC: Suppose that your plaintext is: 010 110, and the initial vector is 101. Also, suppose that you are given the following encryption function E(b) as a table:

Plaintext 000 001 010 011 100 101 110 111
Ciphertext 101 010 000 001 111 100 011 110