Registering cell classes with a block inline in the same method