an example of using CoordinateMatrix