Chapter6 Example6: fixed typo