Updated Dictionary Class to store and array of Words