Example how to write custom insert method.