the flow diagram for production and its stages