example code beautified