begin work on insert method
rework insert method
partial implementation of insert function