No, it was "When I heard the learned astronomer" and he was also reading Leaves of Grass, one of Whitman's most notable books, in a few scenes. Really awesome stuff, I would recommend anyone to read. :) Like a  grand life perspective.