Added an example of the Typed API.