added matrix example