Work done for Coursera's Introduction to Machine Learning course