Simple XPM writer I prepared for a class I never got to teach