finished the Grid Class Modification