Original MATLAB files, from mid term seminar