Convert magento 2 module as widget

I have created module referring below blog post and its working fine.. hello world print on homepage.

Now i need to use this module as a widget . Then we can use this module anywhere we need.(in CMS pages)

Is there anyone have and idea how to achieve this