iterative portion of mystery.scm works