Code for chem research project