ChatGPT logic in a nutshell