Initially, it was compared to a wax tablet, then to a sheet of papyrus, then to a book, and most recently, to a computer.  As you learn about the brain, keep in mind that the usefulness of these metaphors is limited and can lead to erroneous conclusions.