Hopf algebras of symmetric functions and class functions