Test for coursera assignment