inputing multiple expressions now evaluates them all one at a time
added remainder function