CJ's First pull request for review

First pull request for review.
Use 2 (not 4) spaces for indentation.<br>Do not write to stdout. Use Rails' logger if you want to log.