Continued coding Grid class.