added in example to README for LM class