First commit - implemented LMS