finished logit implementation...