〜とおり(に)
The action or result matches exactly what the first element indicates: write it just as the teacher said, assemble it according to the manual. Nouns can attach directly, voicing とおり to どおり: 予定どおり (as scheduled), 計画どおり. Verbs take the dictionary form for content yet to be referenced or the た form for what was already said or expected.
先生が言ったとおりに、書いてください。
Please write it just as the teacher said.
説明書のとおりに組み立てたのに、動かない。
I assembled it according to the manual, yet it doesn't work.
試合は予定どおり、十時に始まった。
The match began at ten, right on schedule.