first round of code

this is the same starter code as originally posted in the coursera forum