character class moved to separate file