using scopes to define (and replace) class methods