show use of extend method