A math teacher in Madison, South Dakota, is being praised for the creative way he helped a student with her homework during the coronavirus pandemic.

When 12-year-old Rylee Anderson began having trouble with an algebra equation while doing her schoolwork online, she decided to email her teacher, Chris Waba, for help, according to 7 News Boston.

Waba, who has taught at Madison Middle School for 27 years, got Rylyee’s email but knew it would be easier to explain if he could just see her in person.

That was when he got an idea.

Not long after their email exchange, Rylee’s front doorbell rang and she found Waba standing on the other side of the glass with his marker and dry erase board.

Her teacher, who lives across the street, had come to help her with the math lesson while also honoring social distancing guidelines.

Rylee’s dad, Josh, shared a photo of the two on March 27 as they went over three math problems together.

“The picture just shows the length that which teachers will go to help their students at any cost during these times,” Anderson said of the incident.

Later, Waba explained that he communicates with his students better face to face, and also thinks they learn more that way.

“Teachers all across the nation have been thrown into a situation like this. I think we’re all more comfortable being in front of our classes and that’s where we’d rather be,” he noted.

That same day, the middle school shared another photo of the two following their lesson.

“That’s what teachers are looking for, those smiles,” Waba explained, adding, “That’s the joy of being a teacher and that’s what we do it for.”

Now, Rylee said she is thankful for her teacher’s help because her parents were unable to explain the math equations in the past.

“He made it easier to understand. I appreciated him coming over,” she concluded.