added code for logistic regression class and fixed whitespace problem