Simple XPM writer I prepared for a class I never taught