Modified existing code - cachematrix