Imported changes from part 2 and added duplicate word checking functionality
Imported changes from part 2
Added duplicate word checking functionality