Matrix class in production