Practice with variable, loop and function