use a vector - it'll handle this for you