add matrix example