Add for loop to Add clas main method