updated basic example with configuration