initial version
added hexToDecimal method