added sample code to insert