Coursera: Completed assignment 2