Coursera codint the matric class