Suggestion algorithm modified -- results are somewhat plausible
reoganized code