Modified to read a text file and add the the data in a amtrix