example code from https://class.coursera.org/startup-001/class/index