Insert function added

Insert function added