how to implement an LMS