example 3-3: absolute value using guards