What is the significance of these magic numbers?  Would it be better to have the values as named values in a hash, rather than in an array?