how to program a crystal