Added a stateful version of dist arith with multiuser input