Finished matrix class