assignment for machine learning class on Coursera