Creating a custom river plugin