Freedom as a Social Contract