adding instructions and initial matlab code