loops and conditionals example