task 601 until adding matrix