Duck typing example