How do you implement functions into the turing machine?