read matrix done
exercise 12 done