Greetings, Nima
Here's the course I used for the example I mentioned above:
http://weg.ee.usyd.edu.au/people/ernieg/thesis/course.zip
Thanks,
Ernie