changed variable i to more descriptive 'number'