LDA code is working