Codes for the FiME training