Rewrote the environment-based examples with app-based ones