foreach loop exercises