added append and extend methods
added append and extend methods