refactor in pairing interview