added duck typing example