updating examples to fit with latest library