My coursera assignment code