metapost macro definitions to produce class schedule