add class and spec