changed Matrix from generic to only recieve Number