added Modulo code from screencast