done with words i think. changed implementation to use a set