a simple version of expression tree