refactor  + Example from code