Learning to create gems