Added handshake example code