Implements Assignment 4 Part 4-1

quickEncode