Refactors exmaple for clarity