Machine Learning using Logistic Regression