Done some dependency injection for testability.
Dependency injection on word slot handler model
more dependency injection