An introduction to genetics