Added coordinate methods in grid.