Code 4.0 and final code for query expansion.