Minor issue: you could run this code only for @numbers[0] and run the rest in a loop