adding example for replacing default functions with my own