http://www.arsdigita.com/acs-repository/one-version?version_id=886
it's designed for ACS 3.4, and is in APM format.
To use it, just gunzip the APM & take a look at the code that lies beneath.
good luck!