Creating a word generator inferface, and adjusting the existing implementation to correctly implement the new interface