Working sample with iBeacon