fix #1. add working matrix example