duck typing example