How do notebooks work?