finsih basic LDA model