simplify and beautify 1st example