Final Teacher code