Renamed css class, refactored methods, converted for loop