refactor and init of examples