added a new function, the function "insert"