Ch 9 exercise 1, add root url method