update to Lab 6 MATLAB files