How to add deflationary function to Smart Contract

Hello,

I created a smart contract with basic functions but I want add deflationary function to the contract I know there is a way to clone SafeMoon contract but it's old, I want to add the deflationary function only to my contact.

Thanks in advance.