Advanced example and samiam examples