Implement map method and spec