From scratch, learn how a simple text generator is made. First step for understanding more complex models like ChatGPT.