Updated with decode method, Still WIP

Updated with decode method, Still WIP