finished up chp3 exercises
Merge pull request #3 from ksl0/chp3

finished up chp3 exercises