How to Build a Dividend Token With Solidity

Recap: In the previous tutorials we build a burnable token, we also learned and build a capped token, and make that token time sensitive. To learn more, check out our previous tutorials. In this tutorial, we will build a dividend token.

This is a companion discussion topic for the original entry at

What I didn’t understand was how the coins are distributed to multiple accounts and the value are updated so that it can be seen in Metamask without calling the methods transfer() or tranferfrom(). Is that possible?
How do other dividend tokens do it?