assessment exercise: REAL NUMBERS [solution 3]