Token with BuyBack funcation?

I am new to the coding community,
I have been trying to create a token that has a function of
5% burn with every sale
5% as dividends to the rest of the holders
5% as liquidity and buyback

Any thread or videos that can help me understand how to set up these functions?

Also, anti-whale economics like limiting buy and sell functions if they can be explained clearly.