The dynamics of monkeypox transmission