Added scopes and stats method to User model