WATCH: Students Surprise Teacher Whose Wife Died and 2-Year-Old Son Was Diagnosed With Cancer

A New Mexico high school class came together to surprise their beloved teacher who was going through a rough time, Inside Edition reports.

Earlier this month, Nathan Neidigk’s 2-year-old son was diagnosed with leukemia. His wife had passed away in 2015.

Neidigk had to take more than a week off to be with his son and when he returned, his students had a surprise for him.

“We came up with the idea in the beginning of the year,” Chad Sherwood, one of Neidigk’s students, told Inside Edition. “Neidigk dropped hints of how he was wanted a Nintendo switch and he loved Zelda. But once we were aware his son was diagnosed with leukemia we collectively got together.”

The students put in roughly $20 each and bought their teacher the Nintendo and some games.

“It was an incredibly generous gesture,” Neidigk said. “The meaning behind it was bigger than the fact that it was an awesome gift. They found the opportunity to do something nice and allow my family to have fun moments in time of intense stress.”

“He’s a very open teacher and he shares all of this with his class. They really respect him for that,” Rick Sherwood, Chad’s father, said.

“It was really important for us to do this because we knew it would mean a lot to him,” Chad Sherwood said. “He’s had some unfortunate times recently and we all just really wanted to help him out.”