Adding the remainder function to be available in repl