Added sample code from LMS