How to draft a writ petition?