Implimenting matrix