Started writing matrix methods