This is my first version of problem 1.  I think it works though.
Merge branch 'master' of https://github.com/nyucusp/gx5003-fall2013