updated, added, and modified parts of the original notebook