example for the .extend() method