complete coursera assignment 4