Update basic example to work and add advanced example.