finished teh character to int converter