What is the procedure for drafting a writ petition?