added recorderror.sml to answer question for lecture