added Grid class