Learning to program with chemistry