added some notes from the textbook