added a bunch of notes from Gates book