implemented [the] matrix
added matrix usage