use for the coursera class ecercice