Applying the three-step model to each subprogram transformation in the almost ideal workflow