coursera hw2 code example review