Implement eval function

Only four arithmetic operation.