Create a simple model class in Magento

Assume we have a Helloworld module under MyExtensions package, and we want to create a simple model class and a hello function in this model to print hello world.
1. Add the below in the global tag in Magehome/app/code/local/MyExtensions/etc/config.xml