how does the converter work?, is there any code i could take a look at?