Matrix Final unformated solution

Still need formating