added extending example
added extending example