Matrix version of the example given in Prog Ass 02.