Refactor lab