end ch6. defined guess. verified working