This is an excerpt from Manning's book Blockchain in Action. Login to get full access to this book.
Figure 2.5 Counter contract diagram
Creating a distributable web app to enable decentralized participants