matrix.h added + resulting ma