The example at line22-36 returns error. The metadata should have the other variable aside from 'tos' since dimension var = 2.
var = 2