Added first implementation for popping the top item