Overload Insert method to accept class name as parameter.