Implemented insert operation