added add, subtract, and multiply functions