Finished the add number-type function