removed timesToLoop from prob3a