chris- fixed logic errors, and changed code.

I changed the code but the program does not work. This is just a test to insure I'm capable of doing the test.