change the scope from storing 'int' string to class of int