adds method and spec