Added more skeleton code and the Initialize matrix function.