Revised loops
Revised conditional statements
Handled ForEach