Upgrade Subscription levels from one to the next?

Hello. I am having trouble figuring out how to setup my membership site. I need to be able to have users sign up and pay for "membership A" and then be able to upgrade to "membership B" by paying for it. Currently they can upgrade to any of my membership levels with out paying for the new level.