Added sstream class to convert strings to ints