first attempt on LMS learning. Doesn't work at the moment.