Refact example's configuration