Implemented "pop" object method