$extend - implemented