the stages of production