Implemented evaluation of expressions and added unit tests.