Tested with Ruby 2.0.0
Refactoring: Moved scopes to its own module