You will need a list to do the separate chaining. This could be a good place to do code reuse.