the legalists ( with a touch of marx to follow ) based their ideas on xunzis teachings that human nature was evil , but took things one step further by rejecting his optimism that humans could be ethically perfected .