first loop in exercise