This is an assignment for a course on coursera.