Moved the logic to a seperate class. Added unit tests. Added an encode method and changed the user prompt to take a message and encode it then analyze the resultant codes.