crewAI flow documentation

Hi Team,

Referring - Flows - CrewAI

Where does the flow fit in the framework?

Do I add the code of flow in main.py or crew.py? In the documentation it’s not clear. I have defined agent and task and defined the crew how to incorporate the flow concept.