Change from exercise instance to Class<? extends Exercise>