created arithmetic functions for arithmetic file