An automatic checkin application using iBeacons