Who Comes After the Vice President?

If President, Barack Obama, passed away then Vice President, Joe Biden, would take over. If Vice President, Joe Biden, passed away then Speaker of the House, Nancy Pelosi would take over.