Struggling student thanks teachers