Implemented everything in tutorial3 except transpose and mult