added atoi solution