Şapkalı talebeler, eğitim tarihi