implement add, subtract, multiply, divide, and sum, then refactor more