Use an array instead of hash to reduce code size #9