wrote LR classifier