started writing matrix class