Refactor method definition
Refactor homework