updated basic example