updated Ch1 with matplotlib inline and explicit import