explain loops and variables