changed goldilocks method to include more words