Added the extend() method to yard's API