Finished Chapter 4 including the onResize event handler.