example code formatted for visibility