based on the Coursera Data science class.