Lets say I want people to be able to buy shares in some sort of decentralized entity. Then when the entity has Bitcoin revenue, I want the entity to distribute the revenue to "shareholders" in proportion to their ownership stake. Whats the best way to do this?