added trinary and hexadecimal