binary handshake assignment