implemented ScalarExpr and AbstractScalar operations