Text this: Class, state, and global structure