What the second amendment was written for