Change way to read expression

Implement way used in the book Tomasz.

Signed-off-by: Gustavo Toshi Komura <gtk10@c3sl.ufpr.br>