Obtaining an education while parenting can be quite the feat, and one HBCU educator understood the struggle all too well. 

A Morehouse College professor helped his student focus in his class by holding his daughter during a lecture. The moment was captured via Facebook in a now-viral post shared by a classmate. 

Nick Vaughn, who recorded the video, explained his surprise when his peer, Wayne Hayer, joined the class with his young daughter. Hayer told their professor he was not able to find a babysitter.

"My professor Nathan Alexander (Morehouse College) said, 'No problem, in fact I will even hold her so you can take better notes in class.' And he did, in fact not only did he teach the entire lecture with the child in his arms but also stayed after class helping those with questions about today’s lecture with the child still in his arms as seen in the pictures," Vaughn wrote. 

Vaughn continued his post by outlining the contributions of professors at HBCUs both in and outside of the classroom. 

"It was this encounter that truly showed me the power and impact HBCUs can have for the Black community, for this professor to understand that life happens and sometimes there are just no ways around it," his caption continued. 

According to Yahoo Lifestyle, the instructor is the James King Jr. Institute Visiting Professor of Mathematics Teaching at the Atlanta-based college.

Blavitize your inbox! Join our daily newsletter for fresh stories and breaking news.

Alexander teaches mathematics education, statistical and mathematical modeling, social networks and graphs. At the beginning of the semester, he told his students to let him know if they need anything from him. Hayes did just that, sharing with his teacher in a previous conversation about his inability to attend study sessions and office hours due to his daughter. 

“And Friday, he walks into the class and he says, ‘Hey, you said if I need anything to let you know. Here she is'," Alexander shared.

Per CNN, Hayes is a 26-year-old married full-time student whose wife was not able to take the baby on this particular day due to errands. With midterms underway, the senior majoring in kinesiology was nervous about taking her to class for fear he would have "all eyes on him." 

His professor noted a bottle was on standby for the 5-month-old who was "really behaved" throughout the lecture. For Alexander, the photo highlights the plight of parents seeking affordable childcare. 

"He works two jobs, is a full-time student, is involved in leadership programs at school and is a parent," he said to CNN. "This photo serves as a reminder of what parents have to do every day and how important it is to have affordable childcare."

Now, check these out:

This Professor Is Teaching First-Ever English Course On Sneaker Culture

Morehouse's New President Moves Into The College's Dorms For His 'Freshman Year'

Spelman and Morehouse Students Go On Hunger Strike To Change School Policy