"matrix" class usage- A sample code