@KiChjang
Fixed decode method and added match statement to encoding method
69dc71b