Added function 'extend' to list.