Logistic model implementation added