added stdio.h in data.cpp to use atoi