added function to initialize a header based on the chosen class