loops and basic tables