width and height updates to exercise 9.