[feature] Example for public actions

Extends the second example for public actions in the documentation.

related #2