An Alternative Proof for the MacWilliams Identity