Code for a Coursera class