Converting denary to binary and hexadecemal