Working factorial, addition, multiplication, and tests.