Add a code element to lessons