started work on matrix class