category learning via switching