How Generative AI Works in 4 Steps: AI as a FunctionDefinition, classification, and key use cases of generative AI