Add Turing machine class before integer-to-TM conversion.