Turned functions into classes.
Merge pull request #18 from Rubykuby/logicoverhaul

Turned functions into classes.