he sat before his laptop , surrounded on either side by stacks of books , many of them opened to pages that had been dogeared and marked up , with passages colored with highlighter pens and red-inked notations made in the margins .