Adding Matlab files for exercise 2