For the coursera assinment