programming crystals