The molecular dynamics method: an introduction