Why was the declaration of inpendence written?