finalize example in separate file