Added method pop() to UnorderedList.