Laws as Tools for Social Harmony