my homework for coursera's class