Added the for each loops