updated routing example to take a parameter