ex1 for datascience on coursera