School attendance and the social contract