Example application refactor