added code for loops tutorials