reworked the basic example so it actually worked