add a extend method

add a extend method