first attempt at a Checkin function