Ted is trying to keep his architecture firm afloat by doing an all-nighter, but Marshall tries to lure him to the roof for a surprise 31st birthday party, on the fourth season finale.