Look at the addons you find there, you asked for a tutorial, see how they made it and try make fit ur needs..