extern int sum;