Use only scalar, vector, matrix, and list
So that it can be translated into C++