Refactor example one