Adding the two funtions