Adds code to examples to create router as stated

Closes bug 1371982

Change-Id: I60dd7622dcd864e59e22cde9d7156a62051eff17
Merge "Adds code to examples to create router as stated"