Coursera assignment week 3