Add method using matrix