lecture notes for genes ecology and evolution 7409605