lsh code example