updated the example to contain new functions