create Matrix class and sum method