Contrastive Learning Of Structured World Models