matrix example for week 3