moved code to cpp file
moved insert code from .h file and completed deleteAll