add solution for atoi