Add `decode` method (v0.0.3)