how do wills work