code used in videos for the TMP Chem YouTube channel