Update converter.cpp

FINISHED VERSION!