added duck typing function test