Add write student rows

Branched from #1