example how to simplify integer expressions