instance class and spec