How to use classes in instance mode?

Thank you! This is exactly what I needed.