added a better ios example