Law and the greater good