added Matrix (homework)