Sample ios code