Use loops instead of explicit