This is sample code in IOS