The Ego Machine by Kuttner, Henry
 is a Project Gutenberg book, now on Github.