created for coursera datascience class