lr model creation code, lots more text examples