test given to interviewees to show how they would refactor