Extend function

unable to pass arguments to extend function.