Implementing the observe method for scopes