explain loops and variables

Changing of loops and variables order and shortly explaining them.