Update Chapter2.ipynb

Needs to import json for dumps/loads