refactoring - dividing logic into two methods 1. calculating data and 2. setting Avatar attributes