Added 'append' and 'prepend' methods