Yes.
But be a bit more specific. Are all the groups at the model top level ? Or are the nested, and if so how deep ?
That is okay. What do you have so far ? We can help you find your errors or point you in the right direction, but you need to post what you have so far.
Heed the wiki posting code in the forums.