Added a subtract function