solve expression using expressionsolver class