Built out the insert() function