Filled in stubs for matrix assignment2