add duck typing example