What are the methods of preparation of Haloalkanes and haloarenes ?