Learning to Compose