current version yields "Floating point exception"
simpleFactor pases first basic test