example of extend()