Text this: Theory of codes