Re-factoring example