Added toBinary method just for fun