iteration with a few classes