homework
Merge https://github.com/mandyozhao/ProgrammingAssignment2