mlm model sample code