First draft of the algorithm, intermmediate word learning