How does the endorcine system work?