Added Grid class with constructor and toString methods