First commit

First working draft of code for programming assignment 2