working on append and prepend methods