How do I make a tab for my plugin on the admin menu

I programmed a simple plugin. I have added it to the sub menu under settings. However, I don't want it to be under settings. I want to make its own tab between Posts and Pages in the admin menu. How can I do this programmatically?