phase 3: change id’s to classes; search & replace; Doing a loop on the array