improved base example