An endocarp is part of a plant