extend method added.