A Theory Of Collective Intentions, With Moral And Legal Applications