[POC] Class based indexes

We don't really need isinstance, right?