examples updated to match latest changes