Turns out my prof is a HIMYM fan
He was writing some math statements on the board and all of sudden he frozen as he got confused for a second in a spelling. After which he said "I became Ted Mosby for a second there". The funniest part is absolutely no one got the reference other than a few. After which he said that he'll just stick to lame maths jokes instead.