added complete checkin demo code