my code for coursera