loops and formatting (using %w)