How are morphine and heroin related?

How are morphine and heroin related?Mention the effect each one of them has on the human body?

Both morphine and heroin are extracted from the latex of plant Papaver somniferum.
Heroin is actually obtained from diacetylation of morphine. Thus, both are related. Morphine, is as an . effective sedative and pain killer while heroin acts as depressant and slows down body functions.