Complete insert.cpp