Understanding The Science Behind ChatGPT's Output