halfway through making the calculate_step_length function.