Implements Assignment 4 Part 3-1

decode
Merge pull request #8 from jackcviers/decode

Implements Assignment 4 Part 3-1