Now we will publish the module, Go to "Extensions" menu and click "Module_Manager"
Select the Foo_Module
Set Status to published and Set to its assigned position
Assigned the module to all pages
Then click Save & Close
Now Go to your joomla index site and you will see the result as shown in the picture below