Trying to add writing a growing matrix. NOT WORKING SO FAR!!!