updates for graphics in chapter2