Ted and Robin are surprised to run into Barney when they volunteer at a homeless shelter on Thanksgiving.
Marshall bequeaths a "slap bet" slap to Ted and Robin; Lily's estranged father (Chris Elliott) visits for Thanksgiving.
When Zoey's naive cousin (Katy Perry) visits, Barney makes a move on her; Ted comes to grips with his feelings for Zoey.
Ted and Barney pick a fight with a bunch of guys to improve their friends' perceptions of them.
Lily and Marshall test their friends to see who would be the best godparents.