extend() method has been added