displaying primary and secondary class