Tutorial - For Loops in R