updated
Added an example to show how to use typenames