 While flirting , Jim Halpert ( John Krasinski ) reveals he is ready to propose to Pam , even going as far as telling her that he is not going to do it at work ( " because that would be rather lame " ) and when he does it , it will " kick her ass " . Pam is not sure if he 's joking . Alone with the camera , Jim reveals that he was not joking and shows an engagement ring that he bought " the week after [ they ] started dating . " After work , while walking back to his car , he stops and gets down on one knee . When Pam stops and looks he says he has a question to ask her . After a second or so of hesitation , he asks her if she will wait while he ties his shoes . She laughs and they continue walking hand in hand . At the end of the episode , Michael and Dwight are seen singing " American Pie " and dancing in the same cemetery at night , presumably having never left . 
