Frequent Words Problem solved