finished basic example