created a test file and created a words function that properly works as per spec