Functional Code

The matrix result has been recoded hold functions to reflect proper data
retrieval. :)

Finally a functional code..^^