Primary school pupils learn to programme