turn Alpha and CharSet into (abstract) classes