for loop grid from class

#codingexplorations