Using getGrid static method instead of MDShapeSet class