Completed character encoding class task