add tests for factorialIter
rename to Ex2a
add exp method