GMail tabs - Primary/Soical/Promotions

You know how if you log into Gmail, your mail is separated into three tabs: Primary (most mail), Social (Twitter notifications, etc), and Social (whole bunch of shopping crap)

Well, when I imported my Gmail, it came in as one huge mass. Ugh.

How can I keep it separate like it is in Google?