grid example now uses the Mesh type