Abstracted Grid class