Using loops, using functions and methods