kind of working example of grids with unary potentials