Help please

Harley
How do I tell my girlfriend that before I got with her I had a boyfriend an we had sex an now I'm pregnant, an also how am I supposed to tell my ex boyfriend???