Creating Grid class with basic functionalities.