Refactor out attr_reader :window