Added code from coursera programming assignment 2

Hello.