5.3 Practice: loops and procedures