character classes with constructors