Added lda code