In Mail, click the gear icon in the top right and select "Inbox categories" from the dropdown menu. You can select which categories to have your emails automatically sorted into. You can add your own categories by ticking the box next to "new category" and type in the name of the new tab. Then click "Save" to view your tabs in your inbox.