Appendix A - Sample code
Copyright © 1997-2003 EDMGROUP (Australia)