converted all qElements and references to qElement to TCB_t as per Project 2 requirement step 1