An introduction to the Hardy--Littlewood method