Is this an early miscarriage?? Please help!

Hi all,

Had heavy bleeding, three painful contractions, then this came out of me. Is this an early miscarriage?

Any advice or insight is greatly appreciated