Convert magento 2 module as widget

I have created module referring below blog post https://www.codilar.com/blog/how-to-create-a-hello-world-module-in-magento-2/ 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