LCS method implemented