I have a new idea of the result

I add 2 methods and merge it in the code.
Method toInt and toString