Added a function which converts numbers to binary.