added a new function, the function "add"