Implementation for iOS - 1st try