added input and add/substract functions, and tests to check them
added input and add/substract functions, and tests to check them