Code result from the appsterdam hackaton on iBeacon