Write instruction for train