Modification to encoding.rb week 4, needs refactorization yet