This is for the coursera project 
coding the matrix.