But she loves teaching, particularly to first-generation college students like herself, and she’s had another reason to stick with it: the promise that a federal program meant to help public servants will eventually wipe away her student loans.