Implemented ForEach everywhere and eliminated for Loop