...

Command primitive

Demo code which illustrates how to implement your own primitive.