home task with refactor