"splitting the algorithm into nine sections"