Implements Assignment 4 Part 3-1
encode
Merge pull request #11 from jackcviers/encode

Implements Assignment 4 Part 3-1