2.2.6 Finding the optimum length