add logic example